<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@taglib prefix="s" uri="/struts-tags"%>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="css/form.css" />
<title>Insert title here</title>
<script type="text/javascript">
function handleChange(value){
	alert("in functioon");
window.location = "/UI/setAction?citySelected="+value;
}
</script>
</head>
<body>

	<div id="stylized" class="myform">
		<fieldset>
			<s:form action="resultAction" method="post" name="myform">

				<s:select label="Select a City" headerValue="Select City"
					list="city" name="yourCity" value="defaultCity"
					onchange="handleChange(this.value)" />

				<s:select label="Select a Theatre" list="theatre" name="yourTheatre"
					value="defaultTheatre" />

				<s:textfield name="movieName" id="myinput" label="Enter Movie Name"
					size="20" />
				<s:submit name="insertButton" id="mysubmit" value="Insert"
					align="center" />

				<div class="spacer"></div>
			</s:form>
		</fieldset>
	</div>


</body>
</html>